package org.qiyu.live.im.core.server.handler.impl;

import io.netty.channel.ChannelHandlerContext;
import org.qiyu.live.im.core.server.common.ImMsg;
import org.qiyu.live.im.core.server.handler.SimplyHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * ack 消息处理 登出消息的处理逻辑统一收拢到这个类中
 * 作者：無言
 * 时间：2024/12/2 21:29
 * 描述：永无BUG
 */
@Component
public class AckImMsgHandler implements SimplyHandler {
    private static final Logger LOGGER = LoggerFactory.getLogger(AckImMsgHandler.class);
    @Override
    public void handler(ChannelHandlerContext ctx, ImMsg imMsg) {
        System.out.println("[AckImMsg]:" + imMsg);
        ctx.writeAndFlush(imMsg);

    }
}
